<{include file="fenzhan:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right">
				<{link ctl="case/case:so" load="mini:搜索案例" width="mini:500" class="button" title="搜索"}>
			</td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr><th class="w-100">ID</th><th>案例名称</th><th>小区</th><th>装修公司</th><th>设计师</th><th>总大小</th><th>浏览数</th><th>喜欢数</th><th>排序</th><th>审核</th><th>创建时间</th><th class="w-150">操作</th></tr>
    <{foreach $items as $item}>
    <tr>
		<td><label><input type="checkbox" value="<{$item.case_id}>" name="case_id[]" CK="PRI"/><{$item.case_id}><label></td>
		<td><{$item.title}></td><td><a ucard="@<{$item.home_id}>"><{$home_list[$item.home_id].name|default:'--'}>(ID:<{$item.home_id}>)</a></td>
		<td><a ucard="@<{$item.home_id}>"><{$company_list[$item.company_id].name|default:'--'}>(ID:<{$item.company_id}>)</a></td>
		<td><a ucard="@<{$item.company_id}>"><{$uid_list[$item.uid].uname|default:'--'}>(UID:<{$item.uid}>)</td>
		<td><{$item.size|format:"size"}></td><td><{$item.views}></td><td><{$item.likes}></td><td><{$item.orderby}></td>
		<td><{if $item.audit}>正常<{else}><span class="red">待审</span><{/if}></td><td><{$item.dateline|format}></td>
		<td>
            <{link ctl="block/item:push" arg0='case' arg1=$item.case_id title="推送" load="mini:推送案例" class="button"}>
			<{link ctl="case/case:detail" args=$item.case_id title="图片" class="button"}>
			<{link ctl="case/case:edit" args=$item.case_id title="修改" class="button"}>
			<{link ctl="case/case:delete" args=$item.case_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
		</td>
	</tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align tip-notice">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left">
                <{link ctl="case/case:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}>
				<{link ctl="case/case:update" arg0="audit" type="button" submit="mini:#items-form" confirm="mini:确定要批量审核通过选中的内容吗?" priv="hide" value="批量审核通过"}>
                <{link ctl="block/item:batch" args='case' type="button" load="mini:批量推荐案例" batch="mini:PRI" priv="hide" value="批量推荐"}>
            </td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="fenzhan:common/footer.html"}>